/*
 * 
 * LegendShop 多用户商城系统
 * 
 *  版权所有,并保留所有权利。
 * 
 */
package com.legendshop.oa.model;

import java.util.Date;

import com.legendshop.dao.persistence.Column;
import com.legendshop.dao.persistence.Entity;
import com.legendshop.dao.persistence.GeneratedValue;
import com.legendshop.dao.persistence.GenerationType;
import com.legendshop.dao.persistence.Id;
import com.legendshop.dao.persistence.Table;
import com.legendshop.dao.persistence.TableGenerator;
import com.legendshop.dao.support.GenericEntity;

/**
 *系统事件
 */
@Entity
@Table(name = "ls_event")
public class UserEvent implements GenericEntity<Long> {

	private static final long serialVersionUID = -4120606089364449687L;

	/** ID */
	private Long id; 
		
	/** 操作员名称 */
	private String userName; 
		
	/** 真实名称 */
	private String realName; 
		
	/** 操作类型 */
	private String type; 
		
	/** 操作描述 */
	private String operation; 
		
	/** 相关数据ID */
	private Long relateId; 
		
	/** 标题 */
	private String title; 
		
	/** 相关数据 */
	private String relateData; 
		
	/** 建立时间 */
	private Date createTime; 
		
	
	public UserEvent() {
    }
		
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy = GenerationType.TABLE, generator = "generator")
	@TableGenerator(name = "generator", pkColumnValue = "EVENT_SEQ")
	public Long  getId(){
		return id;
	} 
		
	public void setId(Long id){
			this.id = id;
		}
		
    @Column(name = "user_name")
	public String  getUserName(){
		return userName;
	} 
		
	public void setUserName(String userName){
			this.userName = userName;
		}
		
    @Column(name = "real_name")
	public String  getRealName(){
		return realName;
	} 
		
	public void setRealName(String realName){
			this.realName = realName;
		}
		
    @Column(name = "type")
	public String  getType(){
		return type;
	} 
		
	public void setType(String type){
			this.type = type;
		}
		
    @Column(name = "operation")
	public String  getOperation(){
		return operation;
	} 
		
	public void setOperation(String operation){
			this.operation = operation;
		}
		
    @Column(name = "relate_id")
	public Long  getRelateId(){
		return relateId;
	} 
		
	public void setRelateId(Long relateId){
			this.relateId = relateId;
		}
		
    @Column(name = "title")
	public String  getTitle(){
		return title;
	} 
		
	public void setTitle(String title){
			this.title = title;
		}
		
    @Column(name = "relate_data")
	public String  getRelateData(){
		return relateData;
	} 
		
	public void setRelateData(String relateData){
			this.relateData = relateData;
		}
		
    @Column(name = "create_time")
	public Date  getCreateTime(){
		return createTime;
	} 
		
	public void setCreateTime(Date createTime){
			this.createTime = createTime;
		}
	


} 
